package com.woniuxy.infrastructure.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.infrastructure.pojo.Light;
import com.woniuxy.infrastructure.service.LightService;
import com.woniuxy.infrastructure.mapper.LightMapper;
import org.springframework.stereotype.Service;

/**
* @author yolo
* @description 针对表【light】的数据库操作Service实现
* @createDate 2025-07-17 20:15:10
*/
@Service
public class LightServiceImpl extends ServiceImpl<LightMapper, Light>
    implements LightService{

    @Override
    public boolean updateUsedStatus(Long id, Integer used) {
        Light light = new Light();
        light.setId(id);
        light.setUsed(used);
        return this.updateById(light);
    }
}




